package com.example.community.utils;

/**
 *
 */
public class RedisKeyUtil {
    private static final String SPLIT = ":";// redis的key的分隔符
    private static final String PREFIX_ENTITY_LIKE = "like:entity";

    // 生成某个实体的赞, 这么个key, 形如: like:entity:entityType:entityId -> set(userID)
    public static String getEntityLikeKey(int entityType, int entityId){
        return PREFIX_ENTITY_LIKE + SPLIT + entityType + SPLIT + entityId;
    }

}
